package com.account.order.service.impl;

import com.account.domain.TAccount;
import com.baomidou.mybatisplus.extension.service.IService;
import spring.cloud.Utils.R;

import java.util.List;

/**
 * @author cyt
 * @create 2020-06-07 10:16
 */
public interface TAccountService extends IService<TAccount> {
    /**
     * 修改账户
     *
     * @param userId
     * @param num
     * @return
     */
    R dec(Integer userId, Integer num);

    /**
     * 查询所有
     *
     * @return
     */
    List<TAccount> getAll();
}
